export enum MediaType {
    "全部" = 0,
    "图片",
    "视频",
    "音频",
    "文档",
    "其他" = 6,
    "文件夹" = 7,
    "稿件" = 11,
    "电子报" = 12,
}

type MediaTypeValues = (typeof MediaType)[keyof typeof MediaType];

export interface TypeProportion {
    mainType: MediaTypeValues;
    proportion: number;
}

export interface CompanyUsage {
    downloadNumber: number;
    name: string;
    uploadNumber: number;
}

export interface MediaResourceData {
    date: string;
    value: number;
    typeAndNumber: {
        number: number;
        mediaType: MediaTypeValues;
    };
}

export class TitleBack {
    total: number | undefined = undefined;
    alliancesNumber: number | undefined = undefined;
    companyNumber: number | undefined = undefined;
    staffNumber: number | undefined = undefined;
}

export interface MediaRank {
    total: number;
    video: number;
    img: number;
    audio: number;
    doc: number;
    rss: number;
    other: number;
    newsLetter: number;
}

export interface Alliance {
    id: number;
    allianceName: string;
}
